<?php
//用于修改企业信息
use yii\helpers\Html;
use yii\widgets\ActiveForm;

?>

<div class="tpl-content-wrapper">
    <div class="container-fluid am-cf">
        <div class="row">
            <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                <div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span> 添加企业用户
                    <small>AI Future</small>
                </div>
                <p class="page-header-description">企业用户信息修改</p>
            </div>
        </div>
    </div>

    <div class="row-content am-cf">

        <div class="row">

            <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                <div class="widget am-cf">
                    <div class="widget-head am-cf">
                        <div class="widget-title am-fl">修改企业用户信息</div>
                        <div class="widget-function am-fr">
                            <a href="javascript:;" class="am-icon-cog"></a>
                        </div>
                    </div>
                    <div class="widget-body am-fr">
                        <?php $form = ActiveForm::begin([
                            'id' => 'login-form',
                            'method' => 'post',
                            'options' => ['class' => "am-form tpl-form-border-form tpl-form-border-br"],
                            'enableClientValidation' => true,
                            'fieldConfig' => [
                                'template' => "<div class=\"col-lg-5\">{input}</div>\n<div class=\"col-lg-3 am-btn-danger\">{error}</div>",
                            ]
                        ]) ?>
                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label">企业或公司名称: <span
                                        class="tpl-form-line-small-title">Title</span></label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($Enterprise, 'name')->textInput(['placeholder' => '请输入企业或公司名称','class' => 'col-sm-6'])->label(false); ?>
                            </div>
                        </div>
                        
                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label">公司/企业 详细地址: <span
                                        class="tpl-form-line-small-title">Title</span></label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($Enterprise, 'address')->textInput(['class' => 'col-sm-6','placeholder' => '公司/企业 详细地址'])->label(false) ?>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label">公司/企业 类型: <span
                                        class="tpl-form-line-small-title">Title</span></label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($Enterprise, 'business_type')->textInput(['placeholder' => '输入公司/企业 类型','class' => 'col-sm-6'])->label(false); ?>
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label for="user-weibo" class="am-u-sm-3 am-form-label">上传图片 <span class="tpl-form-line-small-title">Images</span></label>
                            <div class="am-u-sm-9">
                                <div class="am-form-group am-form-file">
                                    <button type="button" class="am-btn am-btn-danger am-btn-sm">
                                        <i class="am-icon-cloud-upload"></i> 添加图片</button>
                                    <!--                                    <input id="doc-form-file" type="file" multiple="">-->
                                    <?php echo $form->field($Enterprise, 'photo')->fileInput(['id'=>'doc-form-file','multiple'=>'multiple']); ?>
                                </div>
                            </div>
                        </div>

<!--                        <div class="am-form-group">-->
<!--                            <label for="user-weibo" class="am-u-sm-3 am-form-label">上传营业执照 <span class="tpl-form-line-small-title">Images</span></label>-->
<!--                            <div class="am-u-sm-9">-->
<!--                                <div class="am-form-group am-form-file">-->
<!--                                    <button type="button" class="am-btn am-btn-danger am-btn-sm">-->
<!--                                        <i class="am-icon-cloud-upload"></i> 添加图片</button>-->
<!--                                    <!--                                    <input id="doc-form-file" type="file" multiple="">-->-->
<!--                                    --><?php //echo $form->field($Enterprise, 'license')->fileInput(['id'=>'doc-form-file','multiple'=>'multiple']); ?>
<!--                                </div>-->
<!--                            </div>-->
<!--                        </div>-->

                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label">招聘的工种: <span
                                        class="tpl-form-line-small-title">Title</span></label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($Enterprise, 'recruitment')->textInput(['placeholder' => '输入招聘的工种','class' => 'col-sm-6'])->label(false); ?>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label">工作时间: <span
                                        class="tpl-form-line-small-title">Title</span></label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($Enterprise, 'jobtime')->textInput(['placeholder' => '完善中','class' => 'col-sm-6'])->label(false); ?>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label">工作范围: <span
                                        class="tpl-form-line-small-title">Title</span></label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($Enterprise, 'range')->textInput(['placeholder' => '输入工作范围','class' => 'col-sm-6'])->label(false); ?>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label">对员工的要求: <span
                                        class="tpl-form-line-small-title">Title</span></label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($Enterprise, 'request')->textInput(['placeholder' => '输入对员工的要求','class' => 'col-sm-6'])->label(false); ?>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label">提供的实际报酬: <span
                                        class="tpl-form-line-small-title">Title</span></label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($Enterprise, 'salary_1')->textInput(['placeholder' => '输入提供的实际报酬','class' => 'col-sm-6'])->label(false); ?>
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label">提成后的薪资: <span
                                        class="tpl-form-line-small-title">Title</span></label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($Enterprise, 'salary_2')->textInput(['placeholder' => '输入提成后的薪资','class' => 'col-sm-6'])->label(false); ?>
                            </div>
                        </div>



                        <div class="am-form-group">
                            <label for="user-intro" class="am-u-sm-3 am-form-label">详细信息及备注: </label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($Enterprise, 'information')->textarea(['class' => 'col-sm-6', 'placeholder' => "企业的相关介绍",'rows' => "10"])->label(false) ?>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <div class="am-u-sm-9 am-u-sm-push-3">
                                <?php echo Html::submitButton('确认修改', ['class' => 'am-btn am-btn-primary', 'name' => 'submit-button']) ?>
                            </div>
                        </div>
                        <?php ActiveForm::end(); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
